package com.crm.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;
import java.sql.Time;
import java.sql.Timestamp;

/**
 * The persistent class for the repairorders database table.
 * 
 */
@Entity
@Table(name = "repairorders")
@NamedQuery(name = "Repairorder.findAll", query = "SELECT r FROM Repairorder r")
public class Repairorder implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "ro_id")
	private Integer roId;
	
	@Column(name = "ro_worker")
	private Integer roWorker;
	
	@Column(name = "ro_orderid")
	private Integer roOrderid;

	@Column(name = "error_Description")
	private String errorDescription;

	private String remark;

	@Column(name = "ro_classify")
	private Integer roClassify;

	@Column(name = "ro_communication")
	private String roCommunication;

	@Column(name = "ro_cost")
	private BigDecimal roCost;

	/*
	 * @Column(name="ro_customer") private Integer roCustomer;
	 */

	@Column(name = "ro_get_cost")
	private BigDecimal ro_getCost;

	@Temporal(TemporalType.DATE)
	@Column(name = "ro_getDate")
	private Date ro_getDate;

	private Integer ro_getPerson;

	private Time ro_getTime;

	private String ro_goodId;

	@Column(name = "ro_guarantee")
	private Integer roGuarantee;

	@Column(name = "ro_name")
	private String roName;

	@Temporal(TemporalType.DATE)
	private Date ro_payDate;

	@Column(name = "ro_phone")
	private String roPhone;

	@Column(name = "ro_profit")
	private BigDecimal roProfit;
	@Column(name = "ro_status")
	private Integer roStatus;

	@Column(name = "delete_statue")
	private Integer deletestatue;

	@Column(name = "ro_schedule")
	private Integer roSchedule;

	@Column(name = "ro_tel")
	private String roTel;

	// bi-directional many-to-one association to Customer
	@ManyToOne
	@JoinColumn(name = "cust_id")
	private Customer customer;

	// bi-directional many-to-one association to Contact
	@ManyToOne
	@JoinColumn(name = "con_id")
	private Contact contact;

	// private int roStatus;

	public Repairorder() {
	}

	public Integer getRoId() {
		return this.roId;
	}

	public void setRoId(Integer roId) {
		this.roId = roId;
	}

	public String getErrorDescription() {
		return this.errorDescription;
	}

	public void setErrorDescription(String errorDescription) {
		this.errorDescription = errorDescription;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getRoClassify() {
		return this.roClassify;
	}

	public void setRoClassify(Integer roClassify) {
		this.roClassify = roClassify;
	}

	public String getRoCommunication() {
		return this.roCommunication;
	}

	public void setRoCommunication(String roCommunication) {
		this.roCommunication = roCommunication;
	}

	public BigDecimal getRoCost() {
		return this.roCost;
	}

	public void setRoCost(BigDecimal roCost) {
		this.roCost = roCost;
	}

	/*
	 * public int getRoCustomer() { return this.roCustomer; }
	 * 
	 * public void setRoCustomer(Integer roCustomer) { this.roCustomer = roCustomer;
	 * }
	 */

	public BigDecimal getRo_getCost() {
		return this.ro_getCost;
	}

	public void setRo_getCost(BigDecimal ro_getCost) {
		this.ro_getCost = ro_getCost;
	}

	public Date getRo_getDate() {
		return this.ro_getDate;
	}

	public void setRo_getDate(Date ro_getDate) {
		this.ro_getDate = ro_getDate;
	}

	public Integer getRo_getPerson() {
		return this.ro_getPerson;
	}

	public void setRo_getPerson(Integer ro_getPerson) {
		this.ro_getPerson = ro_getPerson;
	}

	public Time getRo_getTime() {
		return this.ro_getTime;
	}

	public void setRo_getTime(Time time) {
		this.ro_getTime = time;
	}

	public String getRo_goodId() {
		return this.ro_goodId;
	}

	public void setRo_goodId(String ro_goodId) {
		this.ro_goodId = ro_goodId;
	}

	public Integer getRoGuarantee() {
		return this.roGuarantee;
	}

	public void setRoGuarantee(Integer roGuarantee) {
		this.roGuarantee = roGuarantee;
	}

	public String getRoName() {
		return this.roName;
	}

	public void setRoName(String roName) {
		this.roName = roName;
	}

	public Date getRo_payDate() {
		return this.ro_payDate;
	}

	public void setRo_payDate(Date ro_payDate) {
		this.ro_payDate = ro_payDate;
	}

	public String getRoPhone() {
		return this.roPhone;
	}

	public void setRoPhone(String roPhone) {
		this.roPhone = roPhone;
	}

	public BigDecimal getRoProfit() {
		return this.roProfit;
	}

	public void setRoProfit(BigDecimal roProfit) {
		this.roProfit = roProfit;
	}

	public int getRoStatus() {
		return this.roStatus;
	}

	public void setRoStatus(Integer roStatus) {
		this.roStatus = roStatus;
	}

	public Integer getRoSchedule() {
		return this.roSchedule;
	}

	public void setRoSchedule(Integer roSchedule) {
		this.roSchedule = roSchedule;
	}

	public String getRoTel() {
		return this.roTel;
	}

	public void setRoTel(String roTel) {
		this.roTel = roTel;
	}

	public Customer getCustomer() {
		return this.customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public Contact getContact() {
		return this.contact;
	}

	public void setContact(Contact contact) {
		this.contact = contact;
	}

	public Integer getDeletestatue() {
		return deletestatue;
	}

	public void setDeletestatue(Integer deletestatue) {
		this.deletestatue = deletestatue;
	}

	public Integer getRoWorker() {
		return roWorker;
	}

	public void setRoWorker(Integer roWorker) {
		this.roWorker = roWorker;
	}

	public Integer getRoOrderid() {
		return roOrderid;
	}

	public void setRoOrderid(Integer roOrderid) {
		this.roOrderid = roOrderid;
	}

	@Override
	public String toString() {
		return "Repairorder [roId=" + roId + ", roWorker=" + roWorker + ", roOrderid=" + roOrderid
				+ ", errorDescription=" + errorDescription + ", remark=" + remark + ", roClassify=" + roClassify
				+ ", roCommunication=" + roCommunication + ", roCost=" + roCost + ", ro_getCost=" + ro_getCost
				+ ", ro_getDate=" + ro_getDate + ", ro_getPerson=" + ro_getPerson + ", ro_getTime=" + ro_getTime
				+ ", ro_goodId=" + ro_goodId + ", roGuarantee=" + roGuarantee + ", roName=" + roName + ", ro_payDate="
				+ ro_payDate + ", roPhone=" + roPhone + ", roProfit=" + roProfit + ", roStatus=" + roStatus
				+ ", deletestatue=" + deletestatue + ", roSchedule=" + roSchedule + ", roTel=" + roTel + ", customer="
				+ customer + ", contact=" + contact + "]";
	}

	public Repairorder(Integer roId, Integer roWorker, Integer roOrderid, String errorDescription, String remark,
			Integer roClassify, String roCommunication, BigDecimal roCost, BigDecimal ro_getCost, Date ro_getDate,
			Integer ro_getPerson, Time ro_getTime, String ro_goodId, Integer roGuarantee, String roName,
			Date ro_payDate, String roPhone, BigDecimal roProfit, Integer roStatus, Integer deletestatue,
			Integer roSchedule, String roTel, Customer customer, Contact contact) {
		super();
		this.roId = roId;
		this.roWorker = roWorker;
		this.roOrderid = roOrderid;
		this.errorDescription = errorDescription;
		this.remark = remark;
		this.roClassify = roClassify;
		this.roCommunication = roCommunication;
		this.roCost = roCost;
		this.ro_getCost = ro_getCost;
		this.ro_getDate = ro_getDate;
		this.ro_getPerson = ro_getPerson;
		this.ro_getTime = ro_getTime;
		this.ro_goodId = ro_goodId;
		this.roGuarantee = roGuarantee;
		this.roName = roName;
		this.ro_payDate = ro_payDate;
		this.roPhone = roPhone;
		this.roProfit = roProfit;
		this.roStatus = roStatus;
		this.deletestatue = deletestatue;
		this.roSchedule = roSchedule;
		this.roTel = roTel;
		this.customer = customer;
		this.contact = contact;
	}

}